package org.timeticker;

import java.io.File;

/**
 * Application configuration
 *
 * @author Ivan Latysh
 * @version 0.1
 * @since 10-Jul-2007 : 8:22:05 PM
 */
public class Configuration {

  /**
   * Return application configuration or null when configuration is not loaded yet.
   *
   * @return configuration or <tt>null</tt>
   */
  public static Configuration getInstance() {
    return configuration;
  }

  private static Configuration configuration = new Configuration();

  /**
   * Private constructor
   */
  private Configuration() { }

  /** Default Config file */
  private File configFile = new File(System.getProperty("user.home", "/TimeTicker/configuration.xml"));
  
  /**
   * Set custom configuration file
   *
   * @param config config file to set
   */
  public void setConfigurationFile(File config) {
    configFile = config;
  }

  /**
   * Load configuration
   */
  public void load() {
    //@todo implement
  }

  /**
   * Save configuration
   */
  public void save() {
    //@todo implement
  }

}
